﻿
using HSGD.IRepository.BASE;
using HSGD.IServices.HSGD_Staff;
using HSGD.Services.BASE;
using HSGD.IServices.HSGD_Logs;
using HSGD.Model.Models.HSGD_Logs;

namespace HSGD.Services.HSGD_Staff;
public class HSGDLogsServices : BaseServices<Logs>, IHSGDLogsServices {
    private readonly IBaseRepository<Logs> _dal;
    //private readonly IRefEmailNoticeServices _refEmailNoticeServices;
    //public IRefEmailNoticeServices _refEmailNoticeServices { get; set; }
    public IPersonEducationInfoServices personEducationInfoServices { get; set; }
    //IMapper _mapper;

    public HSGDLogsServices(IBaseRepository<Logs> dal/*, IMapper mapper*/) {
        this._dal = dal;
        base.BaseDal = dal;
        //_mapper = mapper;
    }

    public async Task<Logs> AddAsync(Logs input) {
        return await Db.Insertable(input).ExecuteReturnEntityAsync();
    }
}